import request from "@/utils/request";

// 保存下架配置
export function saveUnShelfConfig(data) {
  return request({
    url: "/auto/kjerp/erpAutoUnshelfProductConfig/saveUnShelfConfig",
    method: "post",
    data
  })
}

// 修改下架配置启用/禁用状态
export function setStatus(data) {
  return request({
    url: "/auto/kjerp/erpAutoUnshelfProductConfig/setStatus",
    method: "get",
    params: data
  })
}

// 获取下架配置详情
export function selectById(data) {
  return request({
    url: "/auto/kjerp/erpAutoUnshelfProductConfig/selectById",
    method: "get",
    params: data
  })
}

// 下架后上架的商品
export function groundProdList(data) {
  return request({
    url: "/auto/pulishProduct/autoPulishProductProjectTask/getShelfList",
    method: "get",
    params: data
  })
}

// 下架商品列表
export function offShelfProudctList(data) {
  return request({
    url: "/auto/kjerp/erpAutoUnshelfProductLog/getList",
    method: "get",
    params: data
  })
}
